package com.example.image.model;

import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;

public class FolderItem implements Serializable {

	/**
	 * 文件夹
	 */
	private static final long serialVersionUID = 1L;
	private String path; // 文件夹路径
	private ArrayList<String> imagePaths = new ArrayList<String>(); // 文件夹中图片路径列表

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public ArrayList<String> getImagePaths() {
		return imagePaths;
	}

	public void setImagePaths(ArrayList<String> imagePaths) {
		this.imagePaths = imagePaths;
	}

	/**
	 * 获取文件夹中图片数量
	 * 
	 * @return
	 */
	public int getCount() {
		return imagePaths.size();
	}

	public CharSequence getName() {
		File file = new File(path);
		return file.getName();
	}
}
